<include file="Public:header"/>

<div class="roadbar">
    <div class="container"><strong>管理员列表>修改管理员</strong></div>
</div>

<div class="main">
    <div class="container">
        <div class="main-sub">
            <button type="button" class="btn btn-primary btn-sm">修改管理员信息</button>
        </div>
        
        <form action="{:U('Record/edit','type=manager&str=mag_id&id='.$data['mag_id'])}" method="post">

            <div class="row main-form-line">
                <div class="col-md-1">账号：</div>
                <div class="col-md-3"><input type="test" name="mag_name" class="form-control" value="{$data.mag_name}"/></div>
            </div>
            <div class="row main-form-line">
                <div class="col-md-1">密码：</div>
                <div class="col-md-3"><input type="password" name="mag_pass" class="form-control"/></div>
            </div>
            <div class="row main-form-line">
                <div class="col-md-1">权限组：</div>
                <div class="col-md-3">
                    <select class="form-control" name="mag_type">
                        <volist name="group" id="v">
                        <option value="{$v.map_id}">{$v.map_name}</option>
                        </volist>
                    </select>
                </div>
            </div>
            <div class="row main-form-line">
                <div class="col-md-1">状态：</div>
                <div class="col-md-3">
                    <select class="form-control" name="mag_active">
                        <option value="1" <if condition="$data.mag_active eq 1">selected</if>>使用</option>
                        <option value="0" <if condition="$data.mag_active eq 0">selected</if>>停用</option>
                    </select>
                </div>
            </div>
            <div class="row main-form-line">
                <div class="col-md-1">&nbsp;</div>
                <div class="col-md-3"><button type="submit" class="btn btn-primary">更新</button></div>
            </div>
        </form>


    </div>
</div>

<include file="Public:footer"/>